<div class="venuebatchDetails">
    <div class="tab-pane" id="venudetail">
        <?php
        $classWithVenue = classes::getclassWithVenues($model->id);
        foreach ($classWithVenue as $venueValue) {
            ?>
            <h2 class="remmarginT"><?php echo $venueValue->classVenue->name; ?></h2>
            <p class="remmarginB"><?php echo $venueValue->classVenue->name; ?></p>
            <p class="remmarginB"><?php echo $venueValue->classVenue->address_line1 . ', ' . $venueValue->classVenue->address_line2; ?></p> 
            <p class="remmarginB"><?php echo $venueValue->classVenue->city->city_name . ', ' . $venueValue->classVenue->state->name; ?></p> 
            <p class="remmarginB"><?php echo $venueValue->classVenue->country->name . ', ' . $venueValue->classVenue->zip_code; ?></p>
            <div class="clear"></div>
            <?php
            $batchCount = 1;
            $batchdetails = classes::getClassBatch($model->id, $venueValue->class_venue_id);
            foreach ($batchdetails as $batchValue) {
                echo '<h2>Batch Details - ' . $batchCount . '</h2>';
                /* ............................ Here is batch details start................................ */
                ?>
                <div class="viewTable addmarginB20">
                    <div class="detail scroll-item">
                        <div class="rowG th"><div class="col col3"><div class="padding"><h5>Start Date</h5></div></div>
                            <div class="col col3"><div class="padding"><h5>Start Time</h5></div></div>
                            <div class="col col3"><div class="padding"><h5>End Time</h5></div></div>
                            <div class="last col3"><div class="padding"><h5>Price</h5></div></div>
                        </div>
                        <div class="rowG tr">
                            <div class="col col3"><div class="padding"><p><?php echo $batchValue->start_date; ?></p></div></div>
                            <div class="col col3"><div class="padding"><p><?php echo $batchValue->start_time; ?></p></div></div>
                            <div class="col col3"><div class="padding"><p><?php echo $batchValue->end_time; ?></p></div></div>
                            <div class="col col3"><div class="padding"><p><?php echo $batchValue->price; ?></p></div></div>
                        </div>

                    </div>
                </div>
                <div class="clear"></div>
                <?php
                /* --------------------  batch  EarlyDiscount  details Start------------------------------------ */
                $classEarlyDiscount = classes::getClassBatchEarlyBirdDiscount($model->id, $batchValue->id);
                if (!empty($classEarlyDiscount)) {
                    echo ' <h2>Early Discount</h2>';
                    $this->renderPartial('/classEarlyDiscount/_classEarlyDiscount', array('classEarlyDiscount' => $classEarlyDiscount));
                }
                ?>
                <div class="clear"></div>
                <?php /* --------------------  batch  EarlyDiscount  details end ------------------------------------ */ ?>

                <?php
                /* --------------------  Batch  GroupDiscount  details Start------------------------------------ */
                $classGroupDiscount = classes::getClassBatchGroupDscount($model->id, $batchValue['id']);
                if (!empty($classGroupDiscount)) {
                    echo ' <h2>Group Discount</h2>';
                    $this->renderPartial('/groupDiscount/_classGroupDiscount', array('classGroupDiscount' => $classGroupDiscount));
                }
                ?>
                <div class="clear"></div>
                <?php
                /* --------------------  Batch  GroupDiscount  details  end ------------------------------------ */

                /* -------------------- Batch Schedule   details start------------------------------------ */
                if ($batchValue->schedule_id == 4) {
                    $customeSchedule = Classes::getCustomeSechedule($model->id, $batchValue->id);
                    if (!empty($customeSchedule)) {
                        echo ' <h2>Other Schedules </h2>';
                        $this->renderPartial('/batcheSession/_classBatchSession', array('customeSchedule' => $customeSchedule, 'batchValue' => $batchValue));
                    }
                }
                /* -------------------- Batch Schedule   details end------------------------------------ */
                /* -------------------- Batch ClassStructure   details end------------------------------------ */
                $classStructure = classes::getClassStructure($model->id, $batchValue->id);
                if (!empty($classStructure)) {
                    echo ' <h2>Class Structure </h2>';
                    $this->renderPartial('/classStructures/_classCourseStructureDetails', array('classStructure' => $classStructure));
                }
                if ($model->class_type_id == CURATED_CLASS_TYPE) {
                    ?>
                    <p class="alignR remmarginB padding20px"><a class="btn" href="javascript:void(0);" onclick="return BookNow(<?php echo $venueValue->class_venue_id; ?>,<?php echo $batchValue->id; ?>);">Book Now</a></p>
                    <?php
                }
                $batchCount++;
            }
            /* ............................ Here is batch details end................................ */
        }
        ?>
    </div>
</div>
